package com.freesky.biz.psbc.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.freesky.common.annotation.Desensitized;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 邮储营销作战图
 */
@Data
@ContentRowHeight(22)
@ColumnWidth(25)
@HeadRowHeight(25)
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)//表头样式
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)
public class TPsbcMarket implements java.io.Serializable {
    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    private String id;

    //地图上公司名称
    @ExcelIgnore
    private String mapCompanyName;

    @ExcelProperty("姓名")
    @Desensitized(type = Desensitized.DesensitizedType.USER_NAME)
    private String userName;

    @ExcelProperty("手机号码")
    @Desensitized(type = Desensitized.DesensitizedType.PHONE)
    private String mobile;

    @ExcelProperty("所属支行")
    private String bank1;

    @ExcelProperty("首次收集时间")
    private String createDate;

    @ExcelProperty("最后一次更新时间")
    private String updateDate;

    @ExcelProperty("企业所属园区")
    private String parkName;

    //企业标签，1、推荐，2、专精特精型，3、创新型
    @ExcelProperty("企业标签")
    private String companyLabel;

    @ExcelProperty("公司名称")
    private String companyName;

    @ExcelProperty("公司规模")
    private String peopleNum;

    @ExcelProperty("地址")
    private String address;

    //联系人
    @ExcelIgnore
    private String linkName;

    //联系手机号码
    @ExcelIgnore
    private String linkMobile;
    //职位
    @ExcelProperty("面访人职务")
    private String linkPost;

    @ExcelIgnore
    private String companyPhoto;

    @ExcelProperty("共同走访人1")
    private String joinVisitors1;

    @ExcelProperty("共同走访人2")
    private String joinVisitors2;

    @ExcelProperty("共同走访人3")
    private String joinVisitors3;

    @ExcelProperty("共同走访人4")
    private String joinVisitors4;

    @ExcelIgnore
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }
}
